package com.atguigu.gmall.item.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.client.impl.ItemFeiganClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author XIN
 * 2023/4/25
 */
@FeignClient(value = "service-item",fallback = ItemFeiganClientImpl.class)
public interface ItemFeignClient {
	@GetMapping("/api/item/{skuId}")
	Result getItemInfo(@PathVariable Long skuId);
}
